<h1>Nueva novedad</h1>
<?php if($sf_user->hasFlash('msg')){ ?>
<div class="message">
  <?php echo $sf_user->getFlash('msg') ?>
</div>
<br />
<?php } ?>
<form action="<?php echo url_for('@novedades_new_save') ?>" method="post" autocomplete="off" onsubmit="return v_frm();" enctype="multipart/form-data">
<table width="100%" cellpadding="5" cellspacing="5">
  <tr>
    <td>T&iacute;tulo</td>
    <td><textarea name="titulo"></textarea></td>
  </tr>
  <tr>
    <td>Resumen</td>
    <td><textarea name="resumen"></textarea></td>
  </tr
  <tr>
    <td>Contenido</td>
    <td><textarea name="contenido"></textarea></td>
  </tr>

  <tr>
    <td>Numero Orden</td>
    <td><input type="text" name="orden"></td>
  </tr>

  <tr>

  <tr>
    <td>Link</td>
    <td><input type="text" name="link" placeholder="http://www.google.com" autocomplete="off" /></td>
    <td width="80">Es externo?</td>
    <td><input type="checkbox" name="is_external"></td>
  </tr>
      <td>Imagenes</td>
      <td><input type="file" name="imagen" ></td>
  </tr>


  <tr>
    <td colspan="2" align="center">
      <input type="submit" value="Guardar Cambios"/>
    </td>
  </tr>
</table>
</form>
<script type="text/javascript">
function v_frm(){
    var date = $("#date").val();
    if(date==""){
        alert("Ingrese fecha");
        return false;
    }
    return true;
}
</script>